package cn.edu.hpu.service;

import java.util.List;

import org.hibernate.envers.Audited;

import cn.edu.hpu.dao.ContactsnoteDao;
import cn.edu.hpu.pojo.Contactsnote;

public class ContactsnoteService{

	private ContactsnoteDao contactsnoteDao;
	
	public List<Contactsnote> findAll(String id){
		String hql="from Contactsnote where contactsid=?";
		return contactsnoteDao.find(hql, id);
	}
	public void deletecontactsnote(String id){
		contactsnoteDao.del(id);
	}
	
	public void save(Contactsnote contactsnote){
		contactsnoteDao.save(contactsnote);
	}
	public Contactsnote findA(String id){
		return contactsnoteDao.get(id);
	}
	@Audited
	public void setContactsnoteDao(ContactsnoteDao contactsnoteDao) {
		this.contactsnoteDao = contactsnoteDao;
	}
	
}
